﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace End_term
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var Id = textBox1.Text;
            var insert = string.Format("delete from Articles where Id={0}", Id);
            Dbhelp.GetDataTable(insert);
            MessageBox.Show("删除成功");
            this.Close();
        }
    }
}
